﻿<%@ Page Title="" Language="C#" MasterPageFile="~/dormitoryAdministrator/dormitoryAdministrator.Master" AutoEventWireup="true" CodeBehind="Laifangdengji.aspx.cs" Inherits="WebApplication1.dormitoryAdministrator.Laifangdengji" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" Width="100%" style="margin-top:10px"  CellSpacing="10" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="fangke" CellPadding="4" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
            <asp:BoundField DataField="reason" HeaderText="原因" SortExpression="reason" />
            <asp:BoundField DataField="hostel" HeaderText="宿舍楼" SortExpression="hostel" />
            <asp:BoundField DataField="date" HeaderText="日期" SortExpression="date" />
            <asp:BoundField DataField="phone" HeaderText="电话" SortExpression="phone" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:SqlDataSource ID="fangke" runat="server" ConnectionString="<%$ ConnectionStrings:dmsConnectionString %>" ProviderName="<%$ ConnectionStrings:dmsConnectionString.ProviderName %>" SelectCommand="SELECT name,reason,hostel,date,phone FROM `registration_form`"></asp:SqlDataSource>
</asp:Content>
